package com.ttmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ttmall.common.utils.PageUtils;
import com.ttmall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author ttmall
 * @email sunlightcs@gmail.com
 * @date 2022-03-13 20:26:00
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 找到catelogId的完整路径；
     * [父/子/孙]
     * @param catelogId
     * @return
     */
    String[] findCatelogPath(String catelogId);

    List<CategoryEntity> listWithTree();
}

